/**
 * 
 */
package pt.fct.mpc.lastfm.search;


public class AlbumSearchHit
	extends SearchHit
{
	/**
	 * 
	 */
	private static final long serialVersionUID = -8002411150225945037L;
	protected String artist;
	protected int id;

	public AlbumSearchHit(String name, String artist, 
		String url, int id, int searchPosition)
	{
		super(name, url, searchPosition);
		
		this.setArtist(artist);
		this.setId(id);
		
	}

	public AlbumSearchHit(String name, String artist, String url, int id)
	{
		this(name, artist, url, id, 0); // set search position as 0.
	}

	@Override
	public String toString()
	{
		return this.artist + " - " + this.name;
	}

	public String getArtist() {
		return artist;
	}

	public void setArtist(String artist) {
		this.artist = artist;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
}
